package com.xtool.livewallpaper.video

import android.content.Context
import android.opengl.GLSurfaceView

internal abstract class GLWallpaperRenderer(protected val context: Context) :
    GLSurfaceView.Renderer {
    abstract fun setSourcePlayer(player: SystemMediaPlayer)
    abstract fun setScreenSize(width: Int, height: Int)
    abstract fun setVideoSizeAndRotation(width: Int, height: Int, rotation: Int)
    abstract fun setOffset(xOffset: Float, yOffset: Float)

    companion object {
        private const val TAG = "GLWallpaperRenderer"
    }
}